{
	"size": 0,
	"aggs": {
        "study_count": {
            "cardinality": {
              "field": "request_params.time.keyword"
            }
          }
	 },
	"query": {
		"bool": {
			"must": [{
				"match_all": {}
			},{
				"match_phrase": {
					"request_params.courseId": {
						"query": "@courseId"
					}
				}
			},
			{
				"match_phrase": {
					"remote_user": {
						"query": "@userId"
					}
				}
			}],
			"filter": [],
			"should": [],
			"must_not": []
		}
	}
}